<?php
header('Content-type: image.png;');
$productId=urldecode($_GET["id"]);
$accountId = UserInformation::getAccountId();
$locationId = UserInformation::getLocationId();	
					
$restApi = new EzRestApi(); 
$a = $restApi->getProductImage($accountId, $locationId, $productId) ;
//$a = file_get_contents($imageUrl);
echo $a;
?>